﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductImgList.ascx.cs"
    Inherits="BackEnd_ProductImgList" %>
<table id="Table2" cellspacing="1" cellpadding="1" width="100%" border="0">
    <tr>
        <td class="toolbar" colspan="3">
            <table cellspacing="1" cellpadding="1" width="100%">
                <tr>
                    <td style="text-align: left" width="20%">
                        <b>Quản lý slide show của sản phẩm </b>
                    </td>
                    
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td class="holder2" style="color: Red; font-size: 13px; text-align:center">
           Tên Sản phẩm:   <%=this._Product.Name%>
        </td>
    </tr>
    <tr>
        <td>
            <table>
                <tr>
                     <td>
                        <input id="bt1" type="button" value=" Thêm hình nhỏ" onclick='<%=this._ImgSmall %>' />
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" Text="Refresh" runat="server" OnClick="ReGetAllImge" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="lbMessage" runat="server"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:GridView runat="server" ShowHeader="true" ID="grid" BorderColor="#CC9966" BorderStyle="None"
                BorderWidth="1px" RowStyle-BorderWidth="0" RowStyle-BorderStyle="None" Width="100%"
                AlternatingRowStyle-BackColor="#f8f8f8" AlternatingRowStyle-BorderColor="#f8f8f8"
                AutoGenerateEditButton="true" OnRowEditing="grid_RowEditing" OnRowUpdating="grid_RowUpdating"
                HeaderStyle-BackColor="#F1F1F1" CellPadding="4" AutoGenerateColumns="False" AutoGenerateDeleteButton="True"
                OnRowDeleting="grid_RowDeleting" AllowSorting="True" BackColor="White" ShowFooter="True"
                AllowPaging="True" OnPageIndexChanging="grid_PageIndexChanging" PageSize="20">
                <Columns>
                    <asp:TemplateField HeaderText="hình ">
                        <ItemTemplate>
                            <img src="<%#Eval(Component.ColumProductImg._PathImgSmall)%>"  alt="Chưa có hình ảnh lớn " width="100px" height="100px" />
                        </ItemTemplate>
                          <EditItemTemplate>
                           <img src="<%#Eval(Component.ColumProductImg._PathImgSmall)%>" width="100px" height="100px"
                                alt="Chưa có hình ảnh lớn click vào đây để nhập hình"  onclick='<%=this._ImgSmall %>'/></EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="hình ">
                        <ItemTemplate>
                            <img src="<%#Eval(Component.ColumProductImg._PathImgBig)%>" width="100px" height="100px"
                                alt="Chưa có hình ảnh lớn " />
                        </ItemTemplate>
                        <EditItemTemplate>
                              <img src="<%#Eval(Component.ColumProductImg._PathImgBig)%>" width="100px" height="100px"
                                alt="Chưa có hình ảnh lớn click vào đây để nhập hình"  onclick='<%=this._ImgBig %>'/></EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Thứ tự">
                        <ItemTemplate>
                            <%#Eval(Component.ColumProductImg._Priority)%>
                        </ItemTemplate>
                        <EditItemTemplate>
                            <asp:TextBox runat="server" ID="txtPriority" Text='<%#Eval(Component.ColumIntroductionImg._Priority)%>'
                                TextMode="SingleLine" Width="50px" />
                        </EditItemTemplate>
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                </Columns>
                <RowStyle BorderStyle="None" BorderWidth="0px" />
                <HeaderStyle BackColor="#F1F1F1" />
                <AlternatingRowStyle BackColor="#F8F8F8" BorderColor="#F8F8F8" />
            </asp:GridView>
        </td>
    </tr>
</table>
